const mongoose= require("mongoose");
const mongFun=()=>{
    mongoose.connect("mongodb://localhost:27017/2212A")
    .then((ref)=>{
        console.log("链接成功");
    })
    .catch((err)=>{
        console.log("链接失败");
    })
}
module.exports=mongFun